package G1;

public class DOCcnt{
	private DOC doc;
	private int cnt;
	private int eowcnt;


	DOCcnt(DOC doc){
		this.doc =doc;
		cnt = 1;
		eowcnt = 0;
	}
	
	DOCcnt(DOCcnt DOCcnt){
		this.doc = DOCcnt.getDoc();
		this.cnt = DOCcnt.getCnt();
		this.eowcnt = DOCcnt.getEowcnt();
	}
	
	public DOC getDoc() {
		return doc;
	}
	public void setDoc(DOC doc) {
		this.doc = doc;
	}
	public int getCnt() {
		return cnt;
	}
	public void setCnt(int cnt) {
		this.cnt = cnt;
	}
	public void addCnt(int cnt) {
		this.cnt += cnt;
	}
	public void  reduceCnt(int cnt) {
		this.cnt -= cnt;
	}
	public void incCNT() {
		cnt++;
	}
	
	public int getEowcnt() {
		return eowcnt;
	}

	public void setEowcnt(int eowcnt) {
		this.eowcnt = eowcnt;
	}
	public void addEowCnt(int cnt) {
		this.eowcnt += cnt;
	}
	public void  reduceEowCnt(int cnt) {
		this.eowcnt -= cnt;
	}
	public void incEowCNT() {
		eowcnt++;
	}
}
